package org.example.mybooksystem.Modle;

import lombok.Data;

/**
 * Created with IntelliJ IDEA.
 * Description:做渐进主义的改良派,不做完没注意的速成派
 * User: XALEXC
 * Date: 2025-02-23
 * Time: 16:15
 */
@Data
public class PageRequest {
    /**
     * 当前页
     */
    private Integer currentPage=1;
    /**
     * 每页显示条数
     */
    private Integer pageSize=10;

    private Integer offset;

    public Integer getOffset() {
        return (currentPage-1)*pageSize;
    }
}
